﻿using Nb.Common;

namespace Nb.Licenses.Libs.Hardwares
{
    public class MachineInfoService : IMachineInfoService
    {
        public MachineInfo ReadMachineInfo()
        {
            var cpus = HardwareReader.ReadAllCpu();
            var disks = HardwareReader.ReadAllDisk();
            var macs = HardwareReader.ReadAllMac();
            
            var machineInfo = new MachineInfo(cpus, disks, macs);
            return machineInfo;
        }
    }
}